package com.example.dmdomain.entity;

import lombok.Data;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.util.Date;

@Data
@Entity
@EntityListeners(AuditingEntityListener.class)
@Table(name = "chat_session")
public class ChatSession {
    @Id
    @Column(name = "id")
    private String id;
    /**
     * 文件名
     */
    @Column(name = "session_id")
    private String sessionId;
    /**
     * 文件大小
     */
    @Column(name = "session_name")
    private String sessionName;
    /**
     * 用户id
     */
    @Column(name = "request_id")
    private String requestId;
    /**
     * 文件内容
     */
    @Column(name = "use_id")
    private String useId;
    /**
     * 软删除
     */
    @Column(name = "session_time")
    private Date sessionTime;
    /**
     * 会话id
     */
    @Column(name = "file_id")
    private String fileId;
    /**
     * 软删除默认为0，1为删除
     */
    @Column(name = "del_state")
    private Integer delState;
}
